<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.10"/>
<title>dev: dev::base::Exception Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">dev
   &#160;<span id="projectnumber">0.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.10 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;Pages</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('classdev_1_1base_1_1_exception.html','');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="classdev_1_1base_1_1_exception-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">dev::base::Exception Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="_exception_8hpp_source.html">Exception.hpp</a>&gt;</code></p>
<div class="dynheader">
Inheritance diagram for dev::base::Exception:</div>
<div class="dyncontent">
 <div class="center">
  <img src="classdev_1_1base_1_1_exception.png" usemap="#dev::base::Exception_map" alt=""/>
  <map id="dev::base::Exception_map" name="dev::base::Exception_map">
</map>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ac96c45c4e7e820e77b2751f7c129f787"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ac96c45c4e7e820e77b2751f7c129f787"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Exception</b> (int <a class="el" href="classdev_1_1base_1_1_exception.html#a1a8a1cdcd3c9c654a8c0d93d5a1d0b64">code</a>)</td></tr>
<tr class="separator:ac96c45c4e7e820e77b2751f7c129f787"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3591c106017ebc3027d86ae1205dc217"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3591c106017ebc3027d86ae1205dc217"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Exception</b> (const char *const error)</td></tr>
<tr class="separator:a3591c106017ebc3027d86ae1205dc217"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af4292636f8979057a74ecf7e104626c8"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="af4292636f8979057a74ecf7e104626c8"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Exception</b> (int <a class="el" href="classdev_1_1base_1_1_exception.html#a1a8a1cdcd3c9c654a8c0d93d5a1d0b64">code</a>, const char *const error)</td></tr>
<tr class="separator:af4292636f8979057a74ecf7e104626c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afeb97c421adf460c70903ec07b12fcdc"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="afeb97c421adf460c70903ec07b12fcdc"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Exception</b> (const <a class="el" href="classdev_1_1base_1_1_exception.html">Exception</a> &amp;exception)</td></tr>
<tr class="separator:afeb97c421adf460c70903ec07b12fcdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4d43e7b3cdefd8d28ae758171601b818"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4d43e7b3cdefd8d28ae758171601b818"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>init</b> (const char *<a class="el" href="classdev_1_1base_1_1_exception.html#ad000efdccd0527dbbccc322cb7cb9b75">file</a>, const char *<a class="el" href="classdev_1_1base_1_1_exception.html#a1b92cc013a369d214fcabeb77615eba6">function</a>, int <a class="el" href="classdev_1_1base_1_1_exception.html#a6b0e6627e81c5e3ef4a10e56fcf3d7e6">line</a>)</td></tr>
<tr class="separator:a4d43e7b3cdefd8d28ae758171601b818"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e51c41b6a69e71d771bedd775aa0807"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4e51c41b6a69e71d771bedd775aa0807"></a>
<a class="el" href="classdev_1_1base_1_1_exception.html">Exception</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><b>operator=</b> (const <a class="el" href="classdev_1_1base_1_1_exception.html">Exception</a> &amp;exception)</td></tr>
<tr class="separator:a4e51c41b6a69e71d771bedd775aa0807"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a11996ad7bec961319a754d5e07d6bebf"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a11996ad7bec961319a754d5e07d6bebf"></a>
virtual const char *&#160;</td><td class="memItemRight" valign="bottom"><b>what</b> (void) const DEV_NOEXCEPT</td></tr>
<tr class="separator:a11996ad7bec961319a754d5e07d6bebf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1a8a1cdcd3c9c654a8c0d93d5a1d0b64"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1base_1_1_exception.html#a1a8a1cdcd3c9c654a8c0d93d5a1d0b64">code</a> (void) const </td></tr>
<tr class="memdesc:a1a8a1cdcd3c9c654a8c0d93d5a1d0b64"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取错误码  <a href="#a1a8a1cdcd3c9c654a8c0d93d5a1d0b64">More...</a><br /></td></tr>
<tr class="separator:a1a8a1cdcd3c9c654a8c0d93d5a1d0b64"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad000efdccd0527dbbccc322cb7cb9b75"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1base_1_1_exception.html#ad000efdccd0527dbbccc322cb7cb9b75">file</a> (void) const </td></tr>
<tr class="memdesc:ad000efdccd0527dbbccc322cb7cb9b75"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取抛出异常的文件名  <a href="#ad000efdccd0527dbbccc322cb7cb9b75">More...</a><br /></td></tr>
<tr class="separator:ad000efdccd0527dbbccc322cb7cb9b75"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a1b92cc013a369d214fcabeb77615eba6"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1base_1_1_exception.html#a1b92cc013a369d214fcabeb77615eba6">function</a> (void) const </td></tr>
<tr class="memdesc:a1b92cc013a369d214fcabeb77615eba6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取抛出异常的函数名  <a href="#a1b92cc013a369d214fcabeb77615eba6">More...</a><br /></td></tr>
<tr class="separator:a1b92cc013a369d214fcabeb77615eba6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b0e6627e81c5e3ef4a10e56fcf3d7e6"><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1base_1_1_exception.html#a6b0e6627e81c5e3ef4a10e56fcf3d7e6">line</a> (void) const </td></tr>
<tr class="memdesc:a6b0e6627e81c5e3ef4a10e56fcf3d7e6"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取抛出异常的行号  <a href="#a6b0e6627e81c5e3ef4a10e56fcf3d7e6">More...</a><br /></td></tr>
<tr class="separator:a6b0e6627e81c5e3ef4a10e56fcf3d7e6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2768bdb011eeb0acf7edf442dff70424"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdev_1_1base_1_1_exception.html#a2768bdb011eeb0acf7edf442dff70424">stacktrace</a> (void)</td></tr>
<tr class="memdesc:a2768bdb011eeb0acf7edf442dff70424"><td class="mdescLeft">&#160;</td><td class="mdescRight">获取调用堆栈  <a href="#a2768bdb011eeb0acf7edf442dff70424">More...</a><br /></td></tr>
<tr class="separator:a2768bdb011eeb0acf7edf442dff70424"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:aa5d320a9b8aeb1e1d714d9360f27336f"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5d320a9b8aeb1e1d714d9360f27336f"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>code_</b></td></tr>
<tr class="separator:aa5d320a9b8aeb1e1d714d9360f27336f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4a2fce2f7c6c66a5692da9c7454cf0ae"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a4a2fce2f7c6c66a5692da9c7454cf0ae"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>error_</b></td></tr>
<tr class="separator:a4a2fce2f7c6c66a5692da9c7454cf0ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a51b67fde302b5d17233439d167da69cd"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a51b67fde302b5d17233439d167da69cd"></a>
std::string&#160;</td><td class="memItemRight" valign="bottom"><b>stackstrace_</b></td></tr>
<tr class="separator:a51b67fde302b5d17233439d167da69cd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7a53cc0c46be5f5d7286a83518862d0e"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a7a53cc0c46be5f5d7286a83518862d0e"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>file_</b></td></tr>
<tr class="separator:a7a53cc0c46be5f5d7286a83518862d0e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a199fb56acfeebaf4ac2ffe1a0f502c0b"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a199fb56acfeebaf4ac2ffe1a0f502c0b"></a>
const char *&#160;</td><td class="memItemRight" valign="bottom"><b>function_</b></td></tr>
<tr class="separator:a199fb56acfeebaf4ac2ffe1a0f502c0b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab50242c14b7c59d48ef3c53db5cbd72d"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab50242c14b7c59d48ef3c53db5cbd72d"></a>
int&#160;</td><td class="memItemRight" valign="bottom"><b>line_</b></td></tr>
<tr class="separator:ab50242c14b7c59d48ef3c53db5cbd72d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>异常类 </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a1a8a1cdcd3c9c654a8c0d93d5a1d0b64"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int dev::base::Exception::code </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取错误码 </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a class="anchor" id="ad000efdccd0527dbbccc322cb7cb9b75"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* dev::base::Exception::file </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取抛出异常的文件名 </p>
<dl class="section return"><dt>Returns</dt><dd>const char* </dd></dl>

</div>
</div>
<a class="anchor" id="a1b92cc013a369d214fcabeb77615eba6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* dev::base::Exception::function </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取抛出异常的函数名 </p>
<dl class="section return"><dt>Returns</dt><dd>const char* </dd></dl>

</div>
</div>
<a class="anchor" id="a6b0e6627e81c5e3ef4a10e56fcf3d7e6"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">int dev::base::Exception::line </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取抛出异常的行号 </p>
<dl class="section return"><dt>Returns</dt><dd>int </dd></dl>

</div>
</div>
<a class="anchor" id="a2768bdb011eeb0acf7edf442dff70424"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">const char* dev::base::Exception::stacktrace </td>
          <td>(</td>
          <td class="paramtype">void&#160;</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>获取调用堆栈 </p>
<dl class="section return"><dt>Returns</dt><dd>const char* </dd></dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>dev/dev/base/<a class="el" href="_exception_8hpp_source.html">Exception.hpp</a></li>
<li>dev/src/base/Exception.cpp</li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><b>dev</b></li><li class="navelem"><b>base</b></li><li class="navelem"><a class="el" href="classdev_1_1base_1_1_exception.html">Exception</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.10 </li>
  </ul>
</div>
</body>
</html>
